﻿using System;
using System.Collections.Generic;
using System.Linq;

using Sumen.Model.Model;

namespace Sumen.Business.Presenter.Category
{
    public class SizePresenter
    {

        public ICollection<product_size> GetAll()
        {
            using (sumenEntities objEntities = new sumenEntities())
            {
                if (ClsPublic.SYSTEM_DISPLAY_ACTIVED == "1")
                    return objEntities.product_size.ToList();
                else
                    return objEntities.product_size.Where(p => p.Size_Actived == 1).ToList();
            }
        }


    }
}
